﻿#include "DAWorkFlowGraphicsScene.h"
// Qt
#include <QMatrix>
#include <QKeyEvent>
#include <QDebug>

DAWorkFlowGraphicsScene::DAWorkFlowGraphicsScene(QObject *parent)
    : DANodeGraphicsScene(parent), m_scaleFactor(1.0)
{
}

/**
 * @brief 获取回退栈，节点支持redo/undo的必要条件
 * @return
 */
QUndoStack *DAWorkFlowGraphicsScene::getUndoStack() const
{
    return (m_undoStack);
}

/**
 * @brief 设置回退栈，节点支持redo/undo的必要条件
 * @param undoStack
 */
void DAWorkFlowGraphicsScene::setUndoStack(QUndoStack *undoStack)
{
    m_undoStack = undoStack;
}
